package com.zlzxm.shoesmarket.view.adapter.entity;

import com.zlzxm.shoesmarket.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zlz
 * on  4/7/21
 */
public class EntityHomeMenu {

    public static final int HOME_MENU_ADD_GOODS= 0; //添加商品
    public static final int HOME_MENU_REPOSITORY= 1; //仓库设置
    public static final int HOME_MENU_MARKET_TRANSFER = 2; //调货市场
    public static final int HOME_MENU_MANAGE_DESC = 3; //经营概况
    public static final int HOME_MENU_PIC= 4; //统计图表
    public static final int HOME_MENU_NOTE= 5; //记账本
    public static final int HOME_MENU_MARKET_WHOLESALE = 6; //批发市场
    public static final int HOME_MENU_RECRUIT = 7; //供应商
    public static final int HOME_MENU_ADD_STATISTICS = 8; // 进存汇总
    public static final int HOME_MENU_ADD_CALCULATE = 9; //计算机
    public static final int HOME_MENU_IN= 10; //入库记录
    public static final int HOME_MENU_OUT= 11; //出库记录


    private int icon;

    private String title;

    private int id;

    public EntityHomeMenu(int icon, String title, int id) {
        this.icon = icon;
        this.title = title;
        this.id = id;
    }

    public int getIcon() {
        return icon;
    }

    public String getTitle() {
        return title;
    }

    public int getId() {
        return id;
    }

    public static List<EntityHomeMenu> createHomeMenu(){

        List<EntityHomeMenu> homeMenuEntities = new ArrayList<>();

        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_goods,"添加商品",HOME_MENU_ADD_GOODS));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_repository,"仓库设置",HOME_MENU_REPOSITORY));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_market_transfer,"调货市场", HOME_MENU_MARKET_TRANSFER));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_desc,"经营概况", HOME_MENU_MANAGE_DESC));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_pic,"统计图表",HOME_MENU_PIC));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_note,"记账本",HOME_MENU_NOTE));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_market_wholesale,"批发市场", HOME_MENU_MARKET_WHOLESALE));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_source,"供应商", HOME_MENU_RECRUIT));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_statistics,"进存汇总", HOME_MENU_ADD_STATISTICS));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_calculate,"计算机", HOME_MENU_ADD_CALCULATE));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_in,"入库记录",HOME_MENU_IN));
        homeMenuEntities.add(new EntityHomeMenu(R.drawable.icon_home_menu_out,"出库记录",HOME_MENU_OUT));


        return  homeMenuEntities;

    }



}
